#ifndef PHOTOVIEWER_H
#define PHOTOVIEWER_H

#include <QWidget>
#include <QGraphicsScene>
#include <QGraphicsPixmapItem>

namespace Ui {
class PhotoViewer;
}

class PhotoViewer : public QWidget
{
    Q_OBJECT

public:
    explicit PhotoViewer(QPixmap pixmap, QWidget *parent = nullptr);
    ~PhotoViewer();

private slots:
    void on_rotateBtn_clicked();

    void on_biggerBtn_clicked();

    void on_smallerBtn_clicked();

private:
    Ui::PhotoViewer *ui;
    QPixmap m_pixmap;
    QGraphicsScene* m_scene;
    QGraphicsPixmapItem* m_photoItem;
};

#endif // PHOTOVIEWER_H
